projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0addda2
)
Ensure native windows in gdk_property_change
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 18 Dec 2009 23:43:32 +0000
(18:43 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 18 Dec 2009 23:43:32 +0000
(18:43 -0500)
Using X properties on non-toplevel windows is somewhat exotic,
but some people seem to do it, so better to keep it working.
See bug 604787.
gdk/x11/gdkproperty-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkproperty-x11.c
b/gdk/x11/gdkproperty-x11.c
index b0ce21b35f5896e9a71fe83e66ca8640cd09b7a2..1cf54f97e9f88bc05828db6a475a844ca5b13870 100644
(file)
--- a/
gdk/x11/gdkproperty-x11.c
+++ b/
gdk/x11/gdkproperty-x11.c
@@
-701,8
+701,9
@@
gdk_property_change (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
+ gdk_window_ensure_native (window);
+
display = gdk_drawable_get_display (window);
-
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
xtype = gdk_x11_atom_to_xatom_for_display (display, type);
xwindow = GDK_WINDOW_XID (window);